<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input id="c-anchang_id" type="hidden" name="row[anchang_id]" value="{$row.anchang_id}">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所屬案場')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly class="form-control" type="text" value="{$anchangname}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_no" class="form-control" name="row[contract_no]" type="text" value="{$row.contract_no}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remind_start_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remind_start_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[remind_start_date]" type="text" value="{$row.remind_start_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remind_end_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remind_end_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[remind_end_date]" type="text" value="{$row.remind_end_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-service_cycle" data-rule="required" class="form-control selectpicker" name="row[service_cycle]">
                {foreach name="serviceCycleList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.service_cycle"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Times')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-times" data-rule="required" class="form-control" name="row[times]" type="number" value="{$row.times}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mans')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mans" data-rule="required" class="form-control" name="row[mans]" type="number" value="{$row.mans}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_hours')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-service_hours" data-rule="required" class="form-control selectpicker" name="row[service_hours]">
                {foreach name="serviceHoursList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.service_hours"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fee" data-rule="required" class="form-control" name="row[fee]" type="number" value="{$row.fee}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tax')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="taxList" item="vo"}
                <label for="row[tax]-{$key}"><input id="row[tax]-{$key}" name="row[tax]" type="radio" value="{$key}" {in name="key" value="$row.tax"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fee_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-fee_cycle" data-rule="required" class="form-control selectpicker" name="row[fee_cycle]">
                {foreach name="feeCycleList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.fee_cycle"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="contractStatusList" item="vo"}
            <label for="row[contract_status]-{$key}"><input id="row[contract_status]-{$key}" name="row[contract_status]" type="radio" value="{$key}" {in name="key" value="$row.contract_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('文件')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="500" name="row[files]" type="text" value="{$row.files}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="*" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <!--<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>
